home *** CD-ROM | disk | FTP | other *** search
- Path: crux4.cit.cornell.edu!fkrj
- From: fkrj@crux4.cit.cornell.edu (Benjamin Kenobi)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: 680X0 -> PPC translator?
- Date: 27 Feb 1996 17:46:07 GMT
- Organization: Cornell University
- Sender: do12@cornell.edu (Verified)
- Message-ID: <4gvg0v$j2j@newsstand.cit.cornell.edu>
- References: <4fstt2$old@newsstand.cit.cornell.edu> <PETERM.96Feb19135541@tui.maths.irl.cri.nz> <4glch6$rle@ra.nrl.navy.mil> <1190.6631T892T581@und.ida.liu.se>
- NNTP-Posting-Host: crux4.cit.cornell.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Mans Engman (c92manen@und.ida.liu.se) wrote:
-
- : fkrj@crux4.cit.cornell.edu (Benjamin Kenobi) writes:
- : >I'm just wondering, is there any good reason AT can't write a program
- : >which will tranlsate binary executables from 680X0 -> PPC, doing
- : >optimizations along the way? That way we could translate most of our old
- : >software and it would run efficiently. Why didn't Apple do this with the
- : >PowerMacs?
-
- : It is not possible, in the general case, to do completely static code-
- : translation. This means that on some stage there always has to be some kind of
- : interpretation involved, no matter how complex you make the translator.
- : For instance, think about how to handle this simple question:
- : For a given program, what is code and what is data?
-
- On the amiga, don't we have separate "hunks" for code and data?
-
- : Ok, so you make a little code reachability test to find out...but then, how do
- : you make it handle indirect jumps (library calls!)? Hmm...just emulate the
- : code perhaps? :) How would you handle on-the-fly code creating/modifying? Ok,
-
- Ok.. You got me there.
-
- : so noone uses self-modifying code anymore, but what if some code is
- : compressed, for instance? You can't solve these problems without having rigid
- : rules which completely separate code from data. And that would break quite a
- : few programs.
-
- Ok, but even if we could translate say 30-40% of the programs into something
- usable, wouldn't that still be worthwhile?
-
- Dan
-